// 活动参与用户
import { Schema } from 'mongoose';
import { ActivityModel } from './activity.schema';

export const ActivityUsersSchema = new Schema({
  /**
   * 活动Id
  */
  activity: {
    type: Schema.Types.ObjectId,
    required: true,
    ref: ActivityModel
  },
  /**
   * 用户id
  */
  user: {
    type: Schema.Types.ObjectId,
    required: true,
    ref: 'users'
  }
}, {
  timestamps: true
});